﻿namespace UniMana.Data
{
    public static class GetValueLookUpEdit
    {
        public static int ConvertValueToInt(object lue)
        {
            try
            {
                if (lue != null)
                {
                    return int.Parse(lue.ToString());
                }
                else
                {
                    return 0;
                }
            }
            catch
            {
                return -1;
            }
        }
    }
}
